home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 2000…tember: Reference Library / Dev.CD Sep 00 RL Disk 1.toast / mac / Technical Documentation / Develop / develop Issue 26 / develop Issue 26 code / Wide (64 bit) Library / TestWide.make < prev    next >
Encoding:
Text File  |  1996-07-28  |  3.3 KB  |  132 lines  |  [TEXT/MPS ]

  1. # Copyright © 1996 by Apple Computer, Inc.  All rights reserved.
  2. # TestWide.Make
  3. #
  4. #FILE
  5. #    TestWide.Make
  6. #
  7. #NAME
  8. #    Int64Lib
  9. #
  10. #DESCRIPTION
  11. #
  12. #    This file includes the Make instructions to build
  13. #    the test application for the Wide shared code library
  14. #
  15. #    Supports both MPW 3.3.x (MPW C and PPCC) and MPW 3.4.x (SC and MrC)
  16. #
  17. #MODIFICATION HISTORY
  18. #    Created by Terry Teague
  19. #
  20. #    18 Jul 96    -    TRT    -    Initial version (created initially by CreateMake tool)
  21. #    28 Jul 96    -    TRT    -    Modified to use new naming conventions
  22. #
  23. #################################################################################################
  24.  
  25. MAKEFILE        =    TestWide.make
  26. •MondoBuild•    =    {MAKEFILE}  # Make blank to avoid rebuilds when makefile is modified
  27.  
  28. Includes        =    {Shared.Includes}
  29. Sources            =    :Sources:
  30.  
  31. Sym•PPC            =
  32. ObjDir•PPC        =    :Objects:
  33. Sym•68K            =
  34. ObjDir•68K        =    :Objects:
  35.  
  36. PPCCOptions        =    -i "{Includes}" {Sym•PPC} 
  37.  
  38. COptions        =    -i "{Includes}" {Sym•68K} 
  39.  
  40. Objects•PPC        =    ∂
  41.                     "{ObjDir•PPC}TestWide.c.x"
  42.  
  43. Objects•68K        =    ∂
  44.                     "{ObjDir•68K}TestWide.c.o"
  45.  
  46.  
  47. # targets to be overriden by SCMBuild script
  48. Wide68K            =    Wide.68K.lib
  49. WidePPC            =    Wide.PPC.xcoff
  50.  
  51. TestWide68K        =    TestWide.68K
  52. TestWidePPC        =    TestWide.PPC
  53. TestWideFAT        =    TestWide.FAT
  54.  
  55. # pseudo targets
  56. TestWide        ƒ    {•MondoBuild•} {TestWide68K} {TestWidePPC}
  57.     If {TestWide68K} and {TestWidePPC}
  58.         # Duplicate the PowerPC code into the fat binary package.
  59.         Duplicate -y {TestWidePPC} {TestWideFAT}
  60.         # rez in 'CODE' resources from 68K version.  (Brute force method).
  61.         Echo "include ∂"{TestWide68K}∂" 'CODE';" | Rez -a -o {TestWideFAT}
  62.     End
  63.     
  64. TestWide.PPC.MrC    ƒ    {•MondoBuild•} TestWide.PPC
  65.  
  66. TestWide.68K.SC        ƒ    {•MondoBuild•} TestWide.68K
  67.  
  68. # real targets
  69. TestWide.PPC    ƒ    {•MondoBuild•} {Objects•PPC}
  70.     PPCLink ∂
  71.         -o {TestWidePPC} {Sym•PPC} ∂
  72.         {Objects•PPC} ∂
  73. #        -t 'APPL' ∂
  74. #        -c 'SIOW' ∂
  75.         {WidePPC} ∂
  76.         "{PPCLibraries}PPCSIOW.o" ∂
  77.         "{SharedLibraries}InterfaceLib" ∂
  78.         "{SharedLibraries}StdCLib" ∂
  79.         "{SharedLibraries}MathLib" ∂
  80.         "{PPCLibraries}StdCRuntime.o" ∂
  81.         "{PPCLibraries}PPCCRuntime.o" ∂
  82.         "{PPCLibraries}PPCToolLibs.o"
  83.     Rez -d APPNAME=∂"TestWide∂" -a "{RIncludes}"SIOW.r -o {TestWidePPC}
  84.  
  85.  
  86. TestWide.68K    ƒ    {•MondoBuild•} {Objects•68K}
  87.     If "{MPWVersion}" !~ /3.4≈/
  88.         # MPW 3.3.x Libraries are organized differently from those of MPW 3.4.x
  89.         Link ∂
  90.             -o {TestWide68K} {Sym•68K} ∂
  91.             {Objects•68K} ∂
  92. #            -t 'APPL' ∂
  93. #            -c 'SIOW' ∂
  94.             {Wide68K} ∂
  95.             "{CLibraries}Math.o" ∂
  96.             "{CLibraries}CSANELib.o" ∂
  97.             "{CLibraries}StdCLib.o" ∂
  98.             "{Libraries}SIOW.o" ∂
  99.             "{Libraries}Runtime.o" ∂
  100.             "{Libraries}Interface.o"
  101.     Else
  102.         Link ∂
  103.             -o {TestWide68K} {Sym•68K} ∂
  104.             {Objects•68K} ∂
  105. #            -t 'APPL' ∂
  106. #            -c 'SIOW' ∂
  107.             {Wide68K} ∂
  108.             "{Libraries}MathLib.o" ∂
  109.             "{CLibraries}StdCLib.o" ∂
  110.             "{Libraries}SIOW.o" ∂
  111.             "{Libraries}MacRuntime.o" ∂
  112.             "{Libraries}IntEnv.o" ∂
  113.             "{Libraries}Interface.o"
  114.     End
  115.     Rez -a "{RIncludes}"SIOW.r -o {TestWide68K}
  116.  
  117.  
  118. "{ObjDir•PPC}TestWide.c.x"    ƒ    {•MondoBuild•} {Sources}TestWide.c ∂
  119.                                 {Includes}Wide.h
  120.     If "{MPWVersion}" !~ /3.4≈/
  121.         # old PPCC compiler requires Apple Extensions option to be on
  122.         {PPCC} {Sources}TestWide.c -o {Targ} {PPCCOptions} -appleext on
  123.     Else
  124.         {PPCC} {Sources}TestWide.c -o {Targ} {PPCCOptions}
  125.     End
  126.  
  127.  
  128. "{ObjDir•68K}TestWide.c.o"    ƒ    {•MondoBuild•} {Sources}TestWide.c ∂
  129.                                 {Includes}Wide.h
  130.     {C} {Sources}TestWide.c -o {Targ} {COptions}
  131.  
  132.